package com.ketangpai.admin.dao;

import com.ketangpai.admin.entity.Course;
import com.ketangpai.admin.entity.HomeworkGrade;
import com.ketangpai.admin.entity.TestGrade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ClassDetailMapper {
    HomeworkGrade[] getHomeworkGrade(Integer courseId,Integer userId);

    @Select("select * from course where id=#{courseId}")
    Course getCourseInformation(Integer courseId);

    TestGrade[] getTestGrade(Integer courseId,Integer userId);
}
